Re: [NTG-context] Feynman Diagrams

2023-04-12 Thread Aditya Mahajan via ntg-context
%% \CheckSum{924} %% \CharacterTable %% {Upper-case\A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z %% Lower-case\a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z %% Digits\0\1\2\3\4\5\6\7\

Re: [NTG-context] issue with scite module

2022-06-02 Thread Pablo Rodriguez via ntg-context
peg.C, lpeg.Cmt, lpeg.Cp, lpeg.patterns local type = type local match, find = string.match, string.find @@ -41,7 +41,8 @@ local equal= P("=") local ampersand= P("&") -local name = (R("az","AZ","09") + S("_-

Re: [NTG-context] issue with scite module

2022-06-01 Thread Max Chernoff via ntg-context
example, but it may break something else. -- Max diff --git a/texmf-context/context/data/scite/context/lexers/scite-context-lexer-xml.original b/texmf-context/context/data/scite/context/lexers/scite-context-lexer-xml.lua index e635d40..97de3fd 100644 --- a/texmf-context/context/data/scite/

Re: [NTG-context] Ampersand in \unprotect fails in LMTX

2021-07-09 Thread Wolfgang Schuster
Marco Patzer schrieb am 09.07.2021 um 14:46: On Fri, 9 Jul 2021 14:29:20 +0200 Hans Hagen wrote: As \& works for MkIV as well as LMTX, there's an easy workaround. But maybe this isn't intended behaviour and needs checking. intended ... author passes different through the system in lmtx

Re: [NTG-context] Ampersand in \unprotect fails in LMTX

2021-07-09 Thread Marco Patzer
On Fri, 9 Jul 2021 14:29:20 +0200 Hans Hagen wrote: > > As \& works for MkIV as well as LMTX, there's an easy workaround. > > But maybe this isn't intended behaviour and needs checking. > intended ... author passes different through the system in lmtx > (better) Apparently not only author. Also

Re: [NTG-context] Ampersand in \unprotect fails in LMTX

2021-07-09 Thread Hans Hagen
On 7/9/2021 12:56 PM, Marco Patzer wrote: Hi! the following example compiles with MkIV but fails in LMTX: \unprotect \setupinteraction [\c!author={Foo & Bar}] %% {Foo \& Bar} works for MkIV and LMTX \protect \starttext\null\stoptext LMTX: 1 \unprotect 2

[NTG-context] Ampersand in \unprotect fails in LMTX

2021-07-09 Thread Marco Patzer
Hi! the following example compiles with MkIV but fails in LMTX: \unprotect \setupinteraction [\c!author={Foo & Bar}] %% {Foo \& Bar} works for MkIV and LMTX \protect \starttext\null\stoptext LMTX: 1 \unprotect 2 \setupinteraction 3 [\c!author={Foo & Bar}] 4 >>

Re: [NTG-context] eqalign

2019-11-22 Thread Wolfgang Schuster
to work in ConTeXt. 1. \eqalign still works but you have to change the meaning of the ampersand in math mode but I suggest to use \startalign. \setupmathematics[ampersand=normal] \starttext \startformula \eqalign{ A & = x\cr    & = y\cr} \stopformula \stoptext 2. There is

Re: [NTG-context] feature request

2019-07-03 Thread Henri Menke
ix >> \NC A \NC B \NR >> \NC C \NC D \NR >> \stoppmatrix >> \quad >> \startbmatrix >> \NC A \NC B \NR >> \NC C \NC D \NR >> \stopbmatrix >> \quad >> \startvmatrix >> \NC A \N

Re: [NTG-context] feature request

2019-07-03 Thread Atsuhito Kohda
\stopVmatrix > \stopformula > > \startformula > \pmatrix{A, B; C, D} > \quad > \bmatrix{A, B; C, D} > \quad > \vmatrix{A, B; C, D} > \quad > \Vmatrix{A, B; C, D} > \stopformula > > \stoptext > > > > > By the way, I think it is cri

Re: [NTG-context] feature request

2019-07-03 Thread Henri Menke
mula \pmatrix{A, B; C, D} \quad \bmatrix{A, B; C, D} \quad \vmatrix{A, B; C, D} \quad \Vmatrix{A, B; C, D} \stopformula \stoptext > > By the way, I think it is critical to set > \setupmathematics[ampersand=normal] > to use \matrix above but I can't find

Re: [NTG-context] feature request

2019-07-03 Thread Henri Menke
C D \NR \stopvmatrix \quad \startVmatrix \NC A \NC B \NR \NC C \NC D \NR \stopVmatrix \stopformula \stoptext > > By the way, I think it is critical to set > \setupmathematics[ampersand=normal] This should not be necessary in general. Just use \NC and \

[NTG-context] feature request

2019-07-03 Thread Atsuhito Kohda
we can use \bmatrix and \vmatrix in ConTeXt documents, so please add \unexpanded\def\bmatrix#1% {\left[\matrix{#1}\right]} \unexpanded\def\vmatrix#1% {\left|\matrix{#1}\right|} in math-pln.mkiv or somewhere. By the way, I think it is critical to set \setupmathematics[ampersand=normal] to u

Re: [NTG-context] Strange behavior with \usetikzlibrary [matrix]

2019-04-18 Thread Fabrice Couvreur
same. > > ConTeXt ver: 2019.04.16 08:54 MKIV beta > > PDF is attached. > > > Fabrice > > > > Le jeu. 18 avr. 2019 à 12:17, Henri Menke a > écrit : > > > >> In ConTeXt the ampersand is not an alignment character but has catcode > >>

Re: [NTG-context] Strange behavior with \usetikzlibrary [matrix]

2019-04-18 Thread Henri Menke
On 4/18/19 10:22 PM, Fabrice Couvreur wrote: > Hi Henry, > This has no effect, the problem is the same. ConTeXt ver: 2019.04.16 08:54 MKIV beta PDF is attached. > Fabrice > > Le jeu. 18 avr. 2019 à 12:17, Henri Menke a écrit : > >> In ConTeXt the ampersand is no

Re: [NTG-context] Strange behavior with \usetikzlibrary [matrix]

2019-04-18 Thread Fabrice Couvreur
Hi Henry, This has no effect, the problem is the same. Fabrice Le jeu. 18 avr. 2019 à 12:17, Henri Menke a écrit : > In ConTeXt the ampersand is not an alignment character but has catcode > 12 by default. Use the "ampersand replacement" option. > > \usemodule[tikz] &g

Re: [NTG-context] Strange behavior with \usetikzlibrary [matrix]

2019-04-18 Thread Henri Menke
In ConTeXt the ampersand is not an alignment character but has catcode 12 by default. Use the "ampersand replacement" option. \usemodule[tikz] \usetikzlibrary[matrix,decorations.pathreplacing, calc, positioning,fit] \starttext \starttikzpicture[>=stealth,thick,baseline, every ri

Re: [NTG-context] Spurious missing character reports

2018-12-10 Thread Hans Hagen
ing characters: C:/ConTeXt/tex/texmf/fonts/opentype/public/antt/AntykwaTorunskaCond-Regular.otf fonts > 72 U+00021 ! EXCLAMATION MARK fonts > 948 U+00022 " QUOTATION MARK fonts > 1302 U+00026 & AMPERSAND fonts >

[NTG-context] Spurious missing character reports

2018-12-09 Thread Rik Kabel
ype/public/antt/AntykwaTorunskaCond-Regular.otf fonts > 72 U+00021 ! EXCLAMATION MARK fonts > 948 U+00022 " QUOTATION MARK fonts > 1302 U+00026 & AMPERSAND fonts > 345318 U+0002B + PLUS SIGN fonts &

Re: [NTG-context] Border matrix

2018-04-19 Thread Fabrice L
remove it from cont-new.mkiv. 2. To use the \equalign command you have to enable the special meaning of & in math mode with \setupmathematics[ampersand=normal]. 3. User the new mathalignment environment as replacement for \equalign which avoids special characters like &. Wolfgang F

Re: [NTG-context] Border matrix

2018-04-19 Thread Wolfgang Schuster
1. The bordermatrix code is part of the core and you can remove it from cont-new.mkiv. 2. To use the \equalign command you have to enable the special meaning of & in math mode with \setupmathematics[ampersand=normal]. 3. User the new mathalignment environment as replacement for \equa

Re: [NTG-context] problem with character entities in XML processing

2018-04-19 Thread Hans van der Meer
10:53 AM, Hans van der Meer wrote: >> The following use of character entities aborts in ConTeXt. That is of >> course because the # is seen as a parameter. Changing this to &\#xxx; or >> &\letterhash xxx; typesets as is, but that is not the intention, >> because a

[NTG-context] problem with character entities in XML processing

2018-04-19 Thread Hans van der Meer
The following use of character entities aborts in ConTeXt. That is of course because the # is seen as a parameter. Changing this to &\#xxx; or &\letterhash xxx; typesets  as is, but that is not the intention, because an ampersand should appear. So, how do I proceed here?Minimal exampl

Re: [NTG-context] \pmatrix changed?

2018-02-16 Thread Rogers, Michael K
for general use (xml etc) you now have to explicitly enable it: \setupmathematics[ampersand=normal] %% \starttext \startformula A = \pmatrix{ 0.006525 \hfill& 0.006331 \hfill& 0.006828 \hfill\cr 1.006\hfill& 0.009352 \hfill& 1.010 \hfill\cr 0.002385 \hfill&

Re: [NTG-context] \pmatrix changed?

2018-02-16 Thread Hans Hagen
On 2/16/2018 3:16 PM, Rogers, Michael K wrote: This sort of thing worked a year ago and two years ago (sorry, not sure of the versions now): because it's too fragile for general use (xml etc) you now have to explicitly enable it: \setupmathematics[ampersand=normal] %% \starttext

Re: [NTG-context] Two requests for new btx subsystem

2017-10-30 Thread Rik
1957,   author   = {Jan Tschichold},   translator   = {Frederick Plaat},   title    = {The Ampersand: Its origin and development},   year = {1957},   publisher    = {Woudhuysen},   address  = {London},   note = {Translation

[NTG-context] Two requests for new btx subsystem

2017-10-21 Thread Rik Kabel
1953},   publisher    = {D. Stempelag},   address  = {Frankfurt am Main},   language = {german},     }     @BOOK{Plaat1957,   author   = {Jan Tschichold},   translator   = {Frederick Plaat},   title    = {The Ampersand: Its origin and develop

Re: [NTG-context] Bibliography sorting order by Czech alphabet in Context

2017-02-08 Thread Petra Janouchová
Č, > > but in Czech it needs to be after D. Any ideas? > > > > http://tex.stackexchange.com/questions/352496/bibliography- > sorting-order-by-czech-alphabet-in-context/352514#352514 > > > > Here is the minimal example > > > > \mainlanguage[cz] > >

Re: [NTG-context] Bibliography sorting order by Czech alphabet in Context

2017-02-08 Thread Alan Braslau
> http://tex.stackexchange.com/questions/352496/bibliography-sorting-order-by-czech-alphabet-in-context/352514#352514 > > Here is the minimal example > > \mainlanguage[cz] > > \usebtxdataset[bibliotest.bib] > \usebtxdefinitions[apa] > > \unprotect %here I substit

[NTG-context] Bibliography sorting order by Czech alphabet in Context

2017-02-07 Thread Petra Janouchová
ampersand with czech a \def\textampersand{a} \protect \setupbtx [apa:cite] [left=, right=, separator:2={\btxsemicolon}, % :0 and :1 - between items of a list separator:3={\btxsemicolon}, separator:4={\btxsemicolon}, separator:names:2={\btxcomma}, separator:names:3={\btxcomma}, separator:names:4

Re: [NTG-context] APA formatting and reference questions

2016-08-24 Thread Alan BRASLAU
eses, the last > author should be separated by the & (Ampersand) character. Yes, authoryears should use "and" and authoryear should use "&". I'll fix it. However, the APA style goes even further: "Precede the final name in a multiple-author citation in running text

[NTG-context] APA formatting and reference questions

2016-08-24 Thread Todd DeVries
be separated by the & (Ampersand) character. 3. The last reference has 3 authors and should be written as Koch et al (2014) instead, it replicates the entire list of authors previously cited. I must be missing something obvious in my settings. What changes to this sample need to be made to cor

Re: [NTG-context] Bug with the matrix library (TIKZ)

2016-07-21 Thread Fabrice Couvreur
Hi Hans, thanks Fabrice 2016-07-21 14:30 GMT+02:00 Hans Hagen <pra...@wxs.nl>: > On 7/21/2016 11:50 AM, Fabrice Couvreur wrote: > >> Hi Hans, >> If I do this, the problem remains the same. >> >> \starttikzpicture >> \vbox{\matrix [

Re: [NTG-context] Bug with the matrix library (TIKZ)

2016-07-21 Thread Fabrice Couvreur
; >> Hi Hans, >> If I do this, the problem remains the same. >> >> \starttikzpicture >> \vbox{\matrix [matrix of math nodes,ampersand replacement=\&] >> { >> a_8 \& a_1 \& a_6 \\ >> a_3 \& a_5 \& |[red]| a_7 \\ >>

Re: [NTG-context] Bug with the matrix library (TIKZ)

2016-07-21 Thread Hans Hagen
On 7/21/2016 11:50 AM, Fabrice Couvreur wrote: Hi Hans, If I do this, the problem remains the same. \starttikzpicture \vbox{\matrix [matrix of math nodes,ampersand replacement=\&] { a_8 \& a_1 \& a_6 \\ a_3 \& a_5 \& |[red]| a_7 \\ a

Re: [NTG-context] Bug with the matrix library (TIKZ)

2016-07-21 Thread Fabrice Couvreur
Hi Hans, If I do this, the problem remains the same. \starttikzpicture \vbox{\matrix [matrix of math nodes,ampersand replacement=\&] { a_8 \& a_1 \& a_6 \\ a_3 \& a_5 \& |[red]| a_7 \\ a_4 \& a_9 \& a_2 \\ };} \stoptikzpicture 201

Re: [NTG-context] Bug with the matrix library (TIKZ)

2016-07-21 Thread Hans Hagen
] \setupbodyfont[pagella,11pt] \starttext \starttikzpicture \matrix [matrix of math nodes,ampersand replacement=\&] { a_8 \& a_1 \& a_6 \\ a_3 \& a_5 \& |[red]| a_7 \\ a_4 \& a_9 \& a_2 \\ };

[NTG-context] Bug with the matrix library (TIKZ)

2016-07-21 Thread Fabrice Couvreur
Hello, Everything is in the title, as this example shows. Thanks, Fabrice \usemodule[tikz] \usetikzlibrary[matrix] \setupbodyfont[pagella,11pt] \starttext \starttikzpicture \matrix [matrix of math nodes,ampersand

Re: [NTG-context] special characters in URLs

2016-07-18 Thread Alan Bowen
Thanks, Hans. The links work now as they should. Best, Alan On Sun, Jul 17, 2016 at 12:51 PM, Hans Hagen <pra...@wxs.nl> wrote: > On 7/16/2016 4:11 PM, Alan Bowen wrote: > >> I need to establish links to URLs that include the ampersand (&) and >> number sign (#

Re: [NTG-context] special characters in URLs

2016-07-17 Thread Hans Hagen
On 7/16/2016 4:11 PM, Alan Bowen wrote: I need to establish links to URLs that include the ampersand (&) and number sign (#). e.g., http://www.mhs.ox.ac.uk/collections/imu-search-page/record-details/?TitInventoryNo=40829=field=on=2020 and http://www.davidaking.org/instrument-catal

[NTG-context] special characters in URLs

2016-07-16 Thread Alan Bowen
I need to establish links to URLs that include the ampersand (&) and number sign (#). e.g., http://www.mhs.ox.ac.uk/collections/imu-search-page/record-details/?TitInventoryNo=40829=field=on=2020 and http://www.davidaking.org/instrument-catalogue-TOC.htm#part6 How does one do this? The be

[NTG-context] Ampersand followed by semicolon in XML: possible bug?

2015-09-29 Thread massifr
, the ampersand and the following semicolon are eaten up. I've found a way around, until the bug is fixed (if it's a bug and not my limited knowledge of ConTeXt): put a XML comment after the ampersand, and everything works as expected

Re: [NTG-context] Ampersand followed by semicolon in XML: possible bug?

2015-09-29 Thread massifr
I've seen that the ampersand gets interpreted as HTML on the mailing list. I'm sending the example as an attachment. Here's a modified version to be seen on the mailing list site: \startbuffer[test] Me amp; my friends; you amp; your friends. Me amp; my friends. You amp; your friends

Re: [NTG-context] Ampersand followed by semicolon in XML: possible bug?

2015-09-29 Thread Hans Hagen
On 9/29/2015 5:58 PM, mass...@fastwebnet.it wrote: Hello list, I've found what it looks like a bug in XML handling in ConTeXt. Try this: It's a side effect of a mechanism that is enables while it shouldn't (relates to dealing with escaped entities). Fixed in next beta. Hans

Re: [NTG-context] Commutative diagrams in tikz-cd: for wiki

2014-03-01 Thread Florêncio Neves
. The tikz-cd module is attached, and here is a sample file: === \usemodule[tikz] \usetikzlibrary{commute} \starttext \starttikzcd %[ampersand replacement=\] A \arrow{rd} \arrow[yshift=0.5ex]{r}{\phi} \ B \\ \ C \stoptikzcd \starttikzcd %[ampersand replacement=\] A \arrow

[NTG-context] Commutative diagrams in tikz-cd: for wiki

2013-05-25 Thread Idris Samawi Hamid ادريس سماوي حامد
. The tikz-cd module is attached, and here is a sample file: === \usemodule[tikz] \usetikzlibrary{commute} \starttext \starttikzcd %[ampersand replacement=\] A \arrow{rd} \arrow[yshift=0.5ex]{r}{\phi} \ B \\ \ C \stoptikzcd \starttikzcd %[ampersand replacement=\] A \arrow[yshift=1.5ex]{r

Re: [NTG-context] ## not permitted in the presence of .

2012-07-14 Thread Wolfgang Schuster
{ampersand}{} \stoptext BTW: \c is already defined as a accent macro. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl

Re: [NTG-context] ## not permitted in the presence of .

2012-07-14 Thread Eythan Weg
{underscore}{_} \two{ampersand}{} \stoptext BTW: \c is already defined as a accent macro. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki

[NTG-context] howto execute loaded xml?

2012-03-21 Thread Meer, H. van der
include buffer=load-2/ textbuffer[load-1] contents/text /myroot \stopbuffer \startbuffer[load-2] includes textIncluded buffer[load-2] contents amp; ampersand./text /includes \stopbuffer \startxmlsetups load:setups \xmlsetsetup{\xmldocument}{myroot|text|include}{load:*} \stopxmlsetups

Re: [NTG-context] Karnaugh Maps

2011-12-22 Thread Philipp A.
) i tikz, you’d do sth like: \usetikzlibrary[matrix,fit] \starttikzpicture \matrix[ matrix of nodes, ampersand replacement=\ ] (m) { 0 \ 0 \ 1\ \1 \\ 0 \ 0 \ 1\ \1 \\ 0 \ 0 \ 0\ \1 \\ 0 \ 1 \ 1\ \1 \\ } \node[red, fit = (m-1-3) (m-2-4)] {}; \node[green, fit = (m-1-4) (m-4-4

[NTG-context] ConvertToConteXt - convert special ConTeXt-characters (PHP)

2011-11-01 Thread Jan Heinen
); // Raute/number sign $xstring = str_replace ( $, \\char36, $xstring ); // Dollar-Zeichen/dollar sign $xstring = str_replace ( %, \\char37, $xstring ); // Prozent-Zeichen/percent sign $xstring = str_replace ( , \\char38, $xstring ); // Kaufmännisches Und/ampersand $xstring

Re: [NTG-context] ConvertToConteXt - convert special ConTeXt-characters (PHP)

2011-11-01 Thread Aditya Mahajan
); // Raute/number sign $xstring = str_replace ( $, \\char36, $xstring ); // Dollar-Zeichen/dollar sign $xstring = str_replace ( %, \\char37, $xstring ); // Prozent-Zeichen/percent sign $xstring = str_replace ( , \\char38, $xstring ); // Kaufmännisches Und/ampersand $xstring = str_replace

Re: [NTG-context] ConvertToConteXt - convert special ConTeXt-characters (PHP)

2011-11-01 Thread Philipp Gesang
= str_replace ( %, \\char37, $xstring ); // Prozent-Zeichen/percent sign $xstring = str_replace ( , \\char38, $xstring ); // Kaufmännisches Und/ampersand $xstring = str_replace ( ', \\char39, $xstring ); // Apostroph/apostrophe $xstring = str_replace ( (, \\char40, $xstring

[NTG-context] ConvertToConteXt 0.2 - convert special ConTeXt-characters (PHP)

2011-11-01 Thread Jan Heinen
); // Dollar-Zeichen/dollar sign $xstring = str_replace ( %, {\\char37}, $xstring ); // Prozent-Zeichen/percent sign $xstring = str_replace ( , {\\char38}, $xstring ); // Kaufmännisches Und/ampersand $xstring = str_replace ( ', {\\char39}, $xstring ); // Apostroph/apostrophe $xstring

Re: [NTG-context] ConvertToConteXt 0.2 - convert special ConTeXt-characters (PHP)

2011-11-01 Thread Philipp Gesang
/ampersand $xstring = str_replace ( ', {\\char39}, $xstring ); // Apostroph/apostrophe $xstring = str_replace ( (, {\\char40}, $xstring ); // Klammer auf/left parenthesis $xstring = str_replace ( ), {\\char41}, $xstring ); // Klammer zu/right parenthesis $xstring = str_replace

Re: [NTG-context] Latest betas break tikz matrix

2011-09-11 Thread Philipp A.
for the suggestion. Regards, Mathieu umm, i can’t seem to get it to work. i use the mkiv minimals… no combination of \donknuthmode, \nonknuthmode, \pgfmatrixnextcell and “replace ampersand=foo”, that i tried, seems to work. can anyone give me a minimal example of a working tikz matrix in a context

Re: [NTG-context] Latest betas break tikz matrix

2011-09-11 Thread Aditya Mahajan
\pgfmatrixnextcell. Thank you Aditya for the suggestion. Regards, Mathieu umm, i can’t seem to get it to work. i use the mkiv minimals… no combination of \donknuthmode, \nonknuthmode, \pgfmatrixnextcell and “replace ampersand=foo”, that i tried, seems to work. can anyone give me a minimal example

Re: [NTG-context] Latest betas break tikz matrix

2011-09-11 Thread Aditya Mahajan
the signs with their interpretations, namely \pgfmatrixnextcell. Thank you Aditya for the suggestion. Regards, Mathieu umm, i can’t seem to get it to work. i use the mkiv minimals… no combination of \donknuthmode, \nonknuthmode, \pgfmatrixnextcell and “replace ampersand=foo”, that i tried, seems

Re: [NTG-context] Latest betas break tikz matrix

2011-02-25 Thread Hans Hagen
pgfbasematrix: Error! Single ampersand used with wrong catcode. ! Missing number, treated as zero. that's a strange error ... if pgf knows that the catcode is 'wrong' it could deal with it i guess Hans

Re: [NTG-context] Latest betas break tikz matrix

2011-02-23 Thread Mathieu Boespflug
Hi Aditya, Could be due to the change in catcode of . Try adding \donknuthmode. It doesn't make any difference if I put the \donknuthmode just before \starttikzpicture. But If I put it before the \usemodule[tikz], then I get another error: Package pgfbasematrix: Error! Single ampersand used

Re: [NTG-context] Latest betas break tikz matrix

2011-02-23 Thread Mathieu Boespflug
error: Package pgfbasematrix: Error! Single ampersand used with wrong catcode. ! Missing number, treated as zero. system           tex error on line 12 in file testcontext.tex: Missing number, treated as zero ...  2     \usemodule[tikz]  3     \usetikzlibrary{matrix}  4  5     \starttext

Re: [NTG-context] Ampersand in Metapost

2010-05-14 Thread Marco
- label(textext(\letterbackslash\letterampersand),origin); - label(textext(\letterbackslash\),origin); This is because the commands are interpreted with TeX before they are written to mpgraph.mp. The \letterampersand or \ generates the character alone: you need to preceed it with

Re: [NTG-context] Ampersand in Metapost

2010-05-14 Thread Hans Hagen
performed was the ampersand and it needs the same workaround using \letterbackslash as textext. I know, your MyWay is old. Maybe some things are fixed now. But I don't see many advantages for me using it. don't expect mkii and mkiv to be 100% compatible in this area (mkii is somewhat stretching things

Re: [NTG-context] Ampersand in Metapost

2010-05-14 Thread Hans Hagen
On 14-5-2010 12:06, Marco wrote: for i=0 downto -3: ran; label(\sometxt{\bold{Test}}, (7cm,-4cm)) rotatedaround ((7cm,-4cm),i*20) withcolor transparent(normal, .2, (r,g,b)); endfor; because transparent overloads the mechanism that sometxt (textext) uses for passing info to tex

Re: [NTG-context] Ampersand in Metapost

2010-05-14 Thread Hans Hagen
On 14-5-2010 1:45, Marco wrote: On Fri, 14 May 2010 12:44:47 +0200, Hans Hagenpra...@wxs.nl wrote: On 14-5-2010 12:06, Marco wrote: for i=0 downto -3: ran; label(\sometxt{\bold{Test}}, (7cm,-4cm)) rotatedaround ((7cm,-4cm),i*20) withcolor transparent(normal, .2, (r,g,b));

Re: [NTG-context] Ampersand in Metapost

2010-05-14 Thread Hans Hagen
On 14-5-2010 3:07, Aditya Mahajan wrote: This is because the commands are interpreted with TeX before they are written to mpgraph.mp. The \letterampersand or \ generates the character alone: you need to preceed it with backslash, so that metapost finally knows what to do. So, should all the

Re: [NTG-context] Ampersand in Metapost

2010-05-14 Thread Mojca Miklavec
On Fri, May 14, 2010 at 12:06, Marco wrote: On Fri, 14 May 2010 00:37:44 +0200, Mojca Miklavec wrote: PS: I would say: better use \sometxt which is far more reliable unless you have to use textext to do string manipulation. I don't know exactly which transformations are considered as »string

Re: [NTG-context] Ampersand in Metapost

2010-05-14 Thread Marco
On Fri, 14 May 2010 17:20:35 +0200, Mojca Miklavec wrote: [...] Here are my results: -There is one obvious reason: speed Average runtime:    textext  variant: 56s    \sometxt variant: 57s That is the same. Maybe my test file is not appropriate to test the speed. I'm sure you

[NTG-context] Ampersand in Metapost

2010-05-13 Thread Marco
Hi, I have a problem producing an ampersand in metapost. In ConTeXt it works as expected. Have a look at the following example. \starttext \ % OK \startMPcode label(textext(\),origin); % produces error \stopMPcode \stoptext The compile time error message is as follows: ! Misplaced alignment

Re: [NTG-context] Ampersand in Metapost

2010-05-13 Thread Hans Hagen
On 13-5-2010 9:18, Marco wrote: Hi, I have a problem producing an ampersand in metapost. In ConTeXt it works as expected. Have a look at the following example. \starttext \ % OK \startMPcode label(textext(\),origin); % produces error \stopMPcode \stoptext The compile time error message

Re: [NTG-context] Ampersand in Metapost

2010-05-13 Thread Mojca Miklavec
On Thu, May 13, 2010 at 22:58, Hans Hagen wrote: On 13-5-2010 9:18, Marco wrote: I have a problem producing an ampersand in metapost. In ConTeXt it works as expected. Have a look at the following example. \starttext \  % OK \startMPcode label(textext(\),origin); % produces error

Re: [NTG-context] Ampersand in Metapost

2010-05-13 Thread Marco
On Thu, 13 May 2010 22:58:46 +0200, Hans Hagen pra...@wxs.nl wrote: On 13-5-2010 9:18, Marco wrote: Hi, I have a problem producing an ampersand in metapost. In ConTeXt it works as expected. Have a look at the following example. \starttext \ % OK \startMPcode label(textext

Re: [NTG-context] Ampersand in Metapost

2010-05-13 Thread Mojca Miklavec
On Thu, May 13, 2010 at 23:45, Marco net...@lavabit.com wrote: On Thu, 13 May 2010 22:58:46 +0200, Hans Hagen pra...@wxs.nl wrote: On 13-5-2010 9:18, Marco wrote: Hi, I have a problem producing an ampersand in metapost. In ConTeXt it works as expected. Have a look at the following

Re: [NTG-context] Ampersand in Metapost

2010-05-13 Thread Aditya Mahajan
On Fri, 14 May 2010, Mojca Miklavec wrote: On Thu, May 13, 2010 at 23:45, Marco net...@lavabit.com wrote: On Thu, 13 May 2010 22:58:46 +0200, Hans Hagen pra...@wxs.nl wrote: On 13-5-2010 9:18, Marco wrote: Hi, I have a problem producing an ampersand in metapost. In ConTeXt it works

Re: [NTG-context] Handling Docbook files

2007-08-15 Thread Aditya Mahajan
with an character. I do not understand what you mean by this. Can you post a sample text? If I run e.g, texexec index.docbook it blows up on the first such ampersand. I can of course edit all the files to replace with \ but I wonder if there is a better strategy? AFAIU XML, having a lone in the file

Re: [NTG-context] Handling Docbook files

2007-08-14 Thread John R. Culleton
by this. Can you post a sample text? If I run e.g, texexec index.docbook it blows up on the first such ampersand. I can of course edit all the files to replace with \ but I wonder if there is a better strategy? AFAIU XML, having a lone in the file is not valid. You need to have amp

[NTG-context] Handling Docbook files

2007-08-13 Thread John R. Culleton
I am trying to run a bunch of docbook files related to Krita. The convention in these files seems to be to prefix subordinate file names with an character. If I run e.g, texexec index.docbook it blows up on the first such ampersand. I can of course edit all the files to replace with \ but I

Re: [NTG-context] Handling Docbook files

2007-08-13 Thread Aditya Mahajan
, texexec index.docbook it blows up on the first such ampersand. I can of course edit all the files to replace with \ but I wonder if there is a better strategy? AFAIU XML, having a lone in the file is not valid. You need to have amp; if you want ampersand. Any other entity (something;) should

Re: [NTG-context] eating up

2006-07-14 Thread Hans Hagen
{\dodoubleargument\dostarttablex} \def\dostarttablex[#1][#2]{% Now for input:�\starttable[][] ... all is well, but for input: \starttable[]� � ... the ampersand appears to be eaten up by the double argument expansion. starttable or starttablex Sorry, but I am missing your point here

Re: [NTG-context] eating up

2006-07-14 Thread Hans van der Meer
:�\starttablex[][] ... all is well, but for input: \starttablex[]� � ... the ampersand appears to be eaten up by the double argument expansion. After some experimenting with argument retrieval I guess I figured out what happens here. Reducing to one optional argument and crippling

[NTG-context] eating up

2006-07-13 Thread Hans van der Meer
: \starttable[]    ... the ampersand appears to be eaten up by the double argument expansion.How can I prevent that, letting end the parameter scanning and using it as the first input? Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http

Re: [NTG-context] eating up

2006-07-13 Thread Hans Hagen
[][] ... all is well, but for input: \starttable[]� � ... the ampersand appears to be eaten up by the double argument expansion. starttable or starttablex btw, messing around with is dangerous in tex Hans

Re: [NTG-context] eating up

2006-07-13 Thread Hans van der Meer
\dostarttablex[#1][#2]{% Now for input:�\starttable[][] ... all is well, but for input: \starttable[]� � ... the ampersand appears to be eaten up by the double argument expansion. starttable or starttablex Sorry, but I am missing your point here. Does your answer imply that I cannot work

[NTG-context] Feature request: Creating tables from (tab-separated) values

2006-04-22 Thread Mojca Miklavec
to someone's mind); for example \def\MyDef#1#2{\bTR\bTD#1\eTD\bTD#2\eTD\eTR}; the machinery behind would only have to feed these macros properly according - [important] possible to separate the data with different characters: tab, comma, multiple spaces, ampersand (), ... - [very useful] a possibility

[NTG-context] small caps

2005-02-26 Thread Thomas A . Schmitz
%32 % /suppress in TeX text /exclam % 33 /quotedbl % 34 % /quotedblright in TeX text /numbersign % 35 /dollar % 36 /percent % 37 /ampersand %38 /quoteright % 39 % /quotesingle in ANSI /parenleft %40 /parenright % 41 /asterisk % 42 /plus

[NTG-context] Latin5 regime

2005-02-25 Thread luigi.scarso
%% \defineactivetoken 36 {} % DOLLAR SIGN %% \defineactivetoken 37 {} % PERCENT SIGN %% \defineactivetoken 38 {} % AMPERSAND %% \defineactivetoken 39 {} % APOSTROPHE %% \defineactivetoken 40 {} % LEFT PARENTHESIS %% \defineactivetoken 41 {} % RIGHT PARENTHESIS %% \defineactivetoken 42 {} % ASTERISK

Re: [NTG-context] Tabulate problem

2004-12-21 Thread Mari Voipio
it please. Your code has another special character besides the ampersand (); it is the 'pipe' (i.e. | ). If the pipe is taken away, the file compiles perfectly. I very recently found out that having 'mismatched' pipes *really* makes a mess - and of course I messed up in a text with table code

Re: [NTG-context] Tabulate problem

2004-12-21 Thread VnPenguin
-- When I changed by \ I have the same error. Anyone could tell me how to fix it please. Your code has another special character besides the ampersand (); it is the 'pipe' (i.e. | ). If the pipe is taken away, the file compiles perfectly. I very recently found out that having

Re: [NTG-context] Re: SciTE Mac

2004-05-26 Thread Adam Lindsay
? what we also need is a variant of --autopdf, i.e, is there a one-liner like: kill the pid that has arobat open % killall Acrobat (Although the free version is Adobe Reader 6.0 now...) SciTE (how to auto start X) % open-x11 SciTE (no ampersand needed, and it seems to be nice: launches X11